<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="./035事件委托函数封装.js"></script>
    <ul id="items">
        <li>AAA</li>
        <li>BBB</li>
        <li>CCC</li>
        <li>DDD</li>
        <div>EEE</div>
    </ul>

    <script>
        addEventListener('#items','click',function(e){
            console.log(this.innerHTML);
        },'li')
    </script>
</body>
</html>